<?php
defined('MCACHE_DEBUG')             || define('MCACHE_DEBUG', false);
defined('MCACHE_DEV_SERVER')        || define('MCACHE_DEV_SERVER', false);
defined('MCACHE_CONNECT_TIMEOUT')   || define('MCACHE_CONNECT_TIMEOUT', 1);

//网站注册
defined('MCACHE_DMZ_WEB_REG') || define('MCACHE_DMZ_WEB_REG', 'dmz_web_reg');
//网站注册 时间限制 30分钟
defined('MCACHE_DMZ_WEB_REG_TIME') || define('MCACHE_DMZ_WEB_REG_TIME', 1800);
//网站注册 单位时间内同一限制注册人数
defined('DMZ_WEB_COUNT_IP_REG') || define('DMZ_WEB_COUNT_IP_REG', 20);
//发送激活账号的邮件次数
defined('REG_QQ_ACTIVE_COUNT') || define('REG_QQ_ACTIVE_COUNT', 'dmz_qq_active_count');
//发送emal激活的邮件次数
defined('REG_EMAIL_ACTIVE_COUNT') || define('REG_EMAIL_ACTIVE_COUNT', 'dmz_email_active_count');
//媒体点击数pv记录
defined('MCACHE_DMZ_AD_REG_PV') || define('MCACHE_DMZ_AD_REG_PV' , 'mcache_dmz_ad_reg_pv');
//cdkey
defined('MCACHE_DMZ_CDKEY') || define('MCACHE_DMZ_CDKEY' , 'dmz_cdkey');
//手机发送短信限制
defined('MCACHE_SEND_SMS_MOBILE') || define('MCACHE_SEND_SMS_MOBILE' , 'send_sms_mobile');
//手机发送短信IP限制
defined('MCACHE_SEND_SMS_IP') || define('MCACHE_SEND_SMS_IP' , 'send_sms_ip');
//手机验证码
defined('MCACHE_SEND_SMS_VERIFY') || define('MCACHE_SEND_SMS_VERIFY' , 'send_sms_verify');
//最新客户端
defined('MCACHE_CLIENT_DOWN_INFO')|| define('MCACHE_CLIENT_DOWN_INFO','client_down_info');
//最新补丁列表
defined('MCACHE_PATCH_DOWN_INFO')|| define('MCACHE_CLIENT_PATCH_INFO','client_patch_info');
##### getCacheServer start ################################################
function &getCacheServer($const_server)
{

    $ret = array();
    switch ($const_server) 
    {
		case MCACHE_DMZ_WEB_REG:
		case MCACHE_DMZ_WEB_REG_TIME:
		case DMZ_WEB_COUNT_IP_REG:
		case REG_QQ_ACTIVE_COUNT:
		case REG_EMAIL_ACTIVE_COUNT:
		case MCACHE_DMZ_AD_REG_PV:
		case MCACHE_DMZ_CDKEY:	
		case MCACHE_SEND_SMS_MOBILE:
		case MCACHE_SEND_SMS_IP:
		case MCACHE_SEND_SMS_VERIFY:
            //$ret[] = array( 'host' => '127.0.0.1', 'port' => 11211);
			 $ret[] = array( 'host' => '10.11.13.187', 'port' => 11212);
			// $ret[] = array( 'host' => '192.168.57.77', 'port' => 11212);
            break;
         default:
            if (MCACHE_DEBUG) { var_dump(func_get_args()); }
    }

    return $ret;
}
?>
